﻿using System;
using System.Diagnostics;

namespace Eve.TapToClick.Models
{
    public class TapData
    {
        // 开始时间
        public DateTime Start { get; set; }
        // 最大触碰点
        public int MaximumActiveContacts { get; set; }
        // 触发点true为触发，fakse为未触发
        public bool[] InstantaneousActiveContacts { get; set; }
        // 接触大小
        public double[] TotalContactDistances { get; set; }
        // X轴
        public uint[] PreviousXValues { get; set; }
        // Y轴
        public uint[] PreviousYValues { get; set; }
        // 按压压力
        public uint[] Pressure { get; set; }
        // 满足点击阈值
        public bool TapThresholdMet { get; set; }
        // 最大压力
        public uint MaximumPressure { get; set; }

        public TapData(int maxContacts)
        {
            Start = DateTime.Now;
            InstantaneousActiveContacts = new bool[maxContacts];
            TotalContactDistances = new double[maxContacts];
            PreviousXValues = new uint[maxContacts];
            PreviousYValues = new uint[maxContacts];
            Pressure = new uint[maxContacts];
        }

    }
}
